package com.nlp.visualization.pojo.NLP.discourse;

import java.util.*;

/**
 * 词频表
 */
public class WordFrequencyTable {

    private List<sampleWord> table;

    public List<sampleWord> getTable() {

//        Collections.sort(table, new Comparator<sampleWord>() {
//            @Override
//            public int compare(sampleWord o1, sampleWord o2) {
//                return o1.getCount() - o2.getCount();
//            }
//        });
        return table;
    }

    public void setTable(List<sampleWord> table) {
        this.table = table;
    }




    public class sampleWord {
        String name;
        String pos;
        Integer count;

        public sampleWord() {
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }


        public Integer getCount() {
            return count;
        }

        public void setCount(Integer count) {
            this.count = count;
        }

        public String getPos() {
            return pos;
        }

        public void setPos(String pos) {
            this.pos = pos;
        }

        public sampleWord(String name, String pos, Integer count) {
            this.name = name;
            this.pos = pos;
            this.count = count;
        }


    }


}
